<template>
  <div>用户{{$route.params.username}}-{{$route.params.id}}</div>
</template>

<script>
import { useRoute } from "vue-router";
export default {
  setup() {
    const route=useRoute()
    console.log(route.params.username)
    console.log(route.params.id)
    return {};
  },
};
</script>

<style lang="scss" scoped></style>
